home *** CD-ROM | disk | FTP | other *** search
/ Cream of the Crop 20 / Cream of the Crop 20 (Terry Blount) (1996).iso / os2 / lynxos25.zip / setup.cmd < prev    next >
OS/2 REXX Batch file  |  1996-02-29  |  1KB  |  42 lines

  1. /* Setup.cmd - silly REXX setup program */
  2. call RxFuncAdd 'SysLoadFuncs', 'RexxUtil', 'SysLoadFuncs'
  3. call SysLoadFuncs
  4. homedir=value('HOME',,'OS2ENVIRONMENT')
  5. if homedir = '' then 
  6.   do
  7.    say 'HOME environment variable not found'
  8.    say
  9.    say 'Please put a SET HOME=<directory> statement in your config.sys'
  10.    return
  11.   end
  12.   else 
  13.    say 'HOME directory found'
  14. tmpdir=value('TMP',,'OS2ENVIRONMENT')
  15. if tmpdir = '' then 
  16.   do
  17.    say 'TMP environment variable not found'
  18.    say
  19.    say 'Please put a SET TMP=<directory> statement in your config.sys'
  20.    return
  21.   end
  22.   else 
  23.    say 'TMP directory found'
  24. etcdir=value('ETC',,'OS2ENVIRONMENT')
  25. if etcdir = '' then 
  26.   do
  27.    say 'ETC environment variable not found'
  28.    say
  29.    say 'Please put a SET ETC=<directory> statement in your config.sys'
  30.    return
  31.   end
  32.   else 
  33.    say 'HOME directory found'
  34.  
  35. '@lynxcp bookmark.htm 'homedir'/bookmark.htm'
  36. '@lynxcp lynxrc 'homedir'/lynxrc'
  37. '@lynxcp lynx.cfg 'etcdir'/lynx.cfg'
  38. say 
  39. say 'Don''t forget to ensure this directory is in the PATH, and remember'
  40. say 'to edit the LYNX.CFG file in the 'etcdir' directory!'
  41.  
  42.